package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户台账对象 ac_customer_info
 *
 * @author ruoyi
 * @date 2025-02-18
 */
public class AcCustomerInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 客户id */
    private Long customerId;

    /** 客户编号 */
    @Excel(name = "客户编号")
    private String customerCode;

    /** 客户类型：0：企业用户（B）1：个人用户（C） */
    @Excel(name = "客户类型：0：企业用户", readConverterExp = "B=")
    private String customerType;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 客户联系人 */
    @Excel(name = "客户联系人")
    private String customerLinkman;

    /** 客户地址 */
    @Excel(name = "客户地址")
    private String customerAddress;

    /** 客户联系电话1 */
    @Excel(name = "客户联系电话1")
    private String customerPhone1;

    /** 客户联系电话2 */
    @Excel(name = "客户联系电话2")
    private String customerPhone2;

    /** 客户租赁次数 */
    @Excel(name = "客户租赁次数")
    private Long customerLeaseCount;

    /** 客户租赁状态：0：在租1：未租 */
    @Excel(name = "客户租赁状态：0：在租1：未租")
    private String customerLeaseStatus;

    /** 客户当前租赁id */
    @Excel(name = "客户当前租赁id")
    private Long customerCurrentLeaseId;

    /** 客户历史租赁id */
    @Excel(name = "客户历史租赁id")
    private String customerHistoricalLeaseId;

    /** 客户信息入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "客户信息入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date customerDate;


    private String idCard;
    private String cardPersonImg;
    private String cardBehindImg;


    /** 客户删除标识：
     0：正常
     1：删除 */
    @Excel(name = "客户删除标识：0：正常1：删除")
            private Integer customerIsDelete;

            /** 删除标志（0代表存在 2代表删除） */
            private String delFlag;

            /** 部门ID */
            @Excel(name = "部门ID")
            private Long deptId;

            public void setCustomerId(Long customerId)
    {
        this.customerId = customerId;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getCardPersonImg() {
        return cardPersonImg;
    }

    public void setCardPersonImg(String cardPersonImg) {
        this.cardPersonImg = cardPersonImg;
    }

    public String getCardBehindImg() {
        return cardBehindImg;
    }

    public void setCardBehindImg(String cardBehindImg) {
        this.cardBehindImg = cardBehindImg;
    }

    public Long getCustomerId()
    {
        return customerId;
    }
    public void setCustomerCode(String customerCode)
    {
        this.customerCode = customerCode;
    }

    public String getCustomerCode()
    {
        return customerCode;
    }
    public void setCustomerType(String customerType)
    {
        this.customerType = customerType;
    }

    public String getCustomerType()
    {
        return customerType;
    }
    public void setCustomerName(String customerName)
    {
        this.customerName = customerName;
    }

    public String getCustomerName()
    {
        return customerName;
    }
    public void setCustomerLinkman(String customerLinkman)
    {
        this.customerLinkman = customerLinkman;
    }

    public String getCustomerLinkman()
    {
        return customerLinkman;
    }
    public void setCustomerAddress(String customerAddress)
    {
        this.customerAddress = customerAddress;
    }

    public String getCustomerAddress()
    {
        return customerAddress;
    }
    public void setCustomerPhone1(String customerPhone1)
    {
        this.customerPhone1 = customerPhone1;
    }

    public String getCustomerPhone1()
    {
        return customerPhone1;
    }
    public void setCustomerPhone2(String customerPhone2)
    {
        this.customerPhone2 = customerPhone2;
    }

    public String getCustomerPhone2()
    {
        return customerPhone2;
    }
    public void setCustomerLeaseCount(Long customerLeaseCount)
    {
        this.customerLeaseCount = customerLeaseCount;
    }

    public Long getCustomerLeaseCount()
    {
        return customerLeaseCount;
    }
    public void setCustomerLeaseStatus(String customerLeaseStatus)
    {
        this.customerLeaseStatus = customerLeaseStatus;
    }

    public String getCustomerLeaseStatus()
    {
        return customerLeaseStatus;
    }
    public void setCustomerCurrentLeaseId(Long customerCurrentLeaseId)
    {
        this.customerCurrentLeaseId = customerCurrentLeaseId;
    }

    public Long getCustomerCurrentLeaseId()
    {
        return customerCurrentLeaseId;
    }
    public void setCustomerHistoricalLeaseId(String customerHistoricalLeaseId)
    {
        this.customerHistoricalLeaseId = customerHistoricalLeaseId;
    }

    public String getCustomerHistoricalLeaseId()
    {
        return customerHistoricalLeaseId;
    }
    public void setCustomerDate(Date customerDate)
    {
        this.customerDate = customerDate;
    }

    public Date getCustomerDate()
    {
        return customerDate;
    }
    public void setCustomerIsDelete(Integer customerIsDelete)
    {
        this.customerIsDelete = customerIsDelete;
    }

    public Integer getCustomerIsDelete()
    {
        return customerIsDelete;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("customerId", getCustomerId())
                .append("customerCode", getCustomerCode())
                .append("customerType", getCustomerType())
                .append("customerName", getCustomerName())
                .append("customerLinkman", getCustomerLinkman())
                .append("customerAddress", getCustomerAddress())
                .append("customerPhone1", getCustomerPhone1())
                .append("customerPhone2", getCustomerPhone2())
                .append("customerLeaseCount", getCustomerLeaseCount())
                .append("customerLeaseStatus", getCustomerLeaseStatus())
                .append("customerCurrentLeaseId", getCustomerCurrentLeaseId())
                .append("customerHistoricalLeaseId", getCustomerHistoricalLeaseId())
                .append("customerDate", getCustomerDate())
                .append("customerIsDelete", getCustomerIsDelete())
                .append("delFlag", getDelFlag())
                .append("deptId", getDeptId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
